package com.lm.service;

import com.lm.dao.UserDao;

public class UserServiceImpl implements UserService {
    //传统方式，程序员自己new 对象
//    UserDao userDao = new UserDaoMysqlImpl();

    //set方法注入UserDao
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void getUser() {
        userDao.getUser();
    }
}
